import { ajax1 } from "@/utils/request1";

export function getLoginCode(data) {
    return ajax1({
        url: '/user/docheckphone',
        method: 'post',
        data
    })
}

// 发送短信验证码
export function getDosendmsgcode (data) {
    return ajax1({
        url: '/user/dosendmsgcode',
        method: 'POST',
        data
    })
}

// 验证短信验证码
export function getDocheckcode (data) {
    return ajax1({
        url: '/user/docheckcode',
        method: 'POST',
        data
    })
}


//  修改密码
export function getDofinishregister (data) {
    return ajax1({
        url: '/user/dofinishregister',
        method: 'POST',
        data
    })
}

// 账户名/手机号/邮箱 + 密码的登录方式
export function getUserlogin (data) {
    return ajax1({
        url: '/user/login',
        method: 'POST',
        data
    })
}